package com.neuronbit.businessflow.flow.clazz;

import com.neuronbit.javaparser.resolution.declarations.ResolvedParameterDeclaration;
import com.neuronbit.javaparser.resolution.types.ResolvedType;

/**
 * The type Source parameter info.
 */
public class SourceParameterInfo implements ParameterInfo {
    private final ResolvedParameterDeclaration parameter;

    /**
     * Instantiates a new Source parameter info.
     *
     * @param parameter the parameter
     */
    public SourceParameterInfo(ResolvedParameterDeclaration parameter) {
        this.parameter = parameter;
    }

    @Override
    public ResolvedType getType() {
        return  this.parameter.getType();
    }

    @Override
    public String getName() {
        return this.parameter.getName();
    }
}
